package Test;



import java.awt.BorderLayout;
import java.awt.Dimension;
import java.net.URL;

import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class WEBTest {
	public static void main(String[] args) {
		JFrame window = new JFrame("Dio");


		JPanel panel = new JPanel(new BorderLayout());
		window.add(panel);

		String code = "<html><head><title>asdef</title></head><body><p>Ciao</p><p>Dio ladruncolo</p>"+
		"<a href='www.merda.com'>Ciao merda</a>"+
		"</body></html>";

		URL u;
		JEditorPane editor = null;
//		u = new URL("www.alessandroandreani.ch");
		//editor = new JEditorPane(u); //
		editor = new JEditorPane("text/html", code);

		panel.add(editor, BorderLayout.CENTER);

		window.pack();
		window.setSize(new Dimension(1000, 600));
		window.setVisible(true);
	}
}
